/**
 * 分页查询商品分类
 */
export interface ProductPageQuery extends PageQuery {
  title?: string;
  categoryId?: number;
  status?: number | undefined;
}

/**
 * 商品分页对象
 */
export interface ProductPageVO {
  id: number;
  title: string;
  categoryId: number;
  categoryName: string;
  itemType: string;
  sellPoint: string;
  price: number;
  num: number;
  status: number;
  priority: number;
  createdUser: string;
  createdTime: string;
  modifiedUser: string;
  modifiedTime: string;
}

/**
 * 商品分页项类型声明
 */
export type ProductPageResult = PageResult<ProductPageVO[]>;

/**
 * 新增或修改商品
 */
export interface ProductSaveOrUpdateVO {
  id?: number;
  title: string;
  categoryId: number | undefined;
  itemType: string;
  sellPoint: string;
  price: number;
  num: number;
  status: number;
  priority: number;
  image: string;
  thumbnails: string[];
  categoryName: string;
}
